#!/bin/bash

source ./scripts/configs.sh

# Check if Backup files exists and restore them
echo -e "\n## Backup files\n"
for item in "${link_items[@]}"; do
    backup_path=$HOME/$item.bak
    if [ -f "$backup_path" ] || [ -d "$backup_path" ]; then
        echo "- Restore: $HOME/$item"
        mv "$backup_path" "$HOME/$item"
    fi
done

echo -e "\n## Done\n"
